#pragma once

#include "division_engine/canvas/border_radius.hpp"
#include "division_engine/color.hpp"
#include "glm/ext/vector_float4.hpp"

#include <glm/vec2.hpp>
#include <glm/vec4.hpp>

namespace division_engine::canvas::components
{

struct RenderableRect
{
    glm::vec4 color;
    BorderRadius border_radius;

    static RenderableRect create_default(
        glm::vec4 color = color::BLACK,
        BorderRadius border_radius = BorderRadius::all(0)
    )
    {
        return {
            .color = color,
            .border_radius = border_radius,
        };
    }
};

}